package dao

import (
	"app.com/common.v1/tool"
	"app.com/rpc.v1/internal/model"
	"context"
)

func (d *Dao) UpdateUser(ctx context.Context, id int64, updateData *model.User) (err error) {
	err = d.Db.Model(&model.User{}).Where("id = ?", id).Updates(updateData).Error
	if err != nil {
		tool.LG.Error("[dao|user] UpdateUser sql err:" + err.Error())
	}
	return
}
